/*     */ package com.newcrm.webapi;
/*     */ 
/*     */ import com.newcrm.exception.NotFoundException;
/*     */ import com.newcrm.util.ParameterUtil;
/*     */ import com.newcrm.util.Util;
/*     */ import com.newcrm.webapi.sub.AddImportantDate;
/*     */ import com.newcrm.webapi.sub.DeleteImportantDate;
/*     */ import com.newcrm.webapi.sub.ListAllImportantDates;
/*     */ import com.newcrm.webapi.sub.ListImportantDates;
/*     */ import com.newcrm.webapi.sub.UpdateImportantDate;
/*     */ import java.io.IOException;
/*     */ import javax.servlet.RequestDispatcher;
/*     */ import javax.servlet.ServletException;
/*     */ import javax.servlet.http.HttpServletRequest;
/*     */ import javax.servlet.http.HttpServletResponse;
/*     */ 
/*     */ public class ImportantDate extends AbstractHttpServlet
/*     */ {
/*     */   private static final long serialVersionUID = -4107383836454682503L;
/*     */ 
/*     */   public void doGet(HttpServletRequest request, HttpServletResponse response)
/*     */     throws ServletException, IOException
/*     */   {
/*  38 */     if (!checkLogin(request)) {
/*  39 */       super.showLoginPage(request, response);
/*  40 */       return;
/*     */     }
/*     */ 
/*  43 */     String url = request.getRequestURI();
/*  44 */     String[] param = ParameterUtil.getParameters(url, getTagkey());
/*     */ 
/*  46 */     if ((param == null) || (param.length == 0)) {
/*  47 */       String operation = Util.getURLParameter(request
/*  48 */         .getParameter("operation"));
/*  49 */       if ((operation == null) || (operation.trim().length() == 0)) {
/*  50 */         request.getRequestDispatcher("/importantDate.jsp").forward(
/*  51 */           request, response);
/*  52 */         return;
/*     */       }
/*     */     }
/*     */     try
/*     */     {
/*  57 */       if ((param != null) && (param.length == 1) && 
/*  58 */         ("search".equals(param[0]))) {
/*  59 */         new ListAllImportantDates(this).parse(request, response);
/*  60 */         return;
/*     */       }
/*     */     }
/*     */     catch (NotFoundException e) {
/*  64 */       request.getRequestDispatcher("/errorpage.jsp").forward(request, 
/*  65 */         response);
/*  66 */       return;
/*     */     }
/*     */ 
/*  69 */     super.doGet(request, response);
/*     */   }
/*     */ 
/*     */   protected AbstractAction getAddAction()
/*     */   {
/*  74 */     return new AddImportantDate(this);
/*     */   }
/*     */ 
/*     */   protected AbstractAction getDeleteAction(String id)
/*     */   {
/*  79 */     return new DeleteImportantDate(this, id);
/*     */   }
/*     */ 
/*     */   protected AbstractAction getListAction()
/*     */   {
/*  84 */     return new ListImportantDates(this);
/*     */   }
/*     */ 
/*     */   protected AbstractAction getShowAction(String id)
/*     */   {
/*  89 */     return null;
/*     */   }
/*     */ 
/*     */   protected AbstractAction getShowAddPageAction()
/*     */   {
/*  94 */     return null;
/*     */   }
/*     */ 
/*     */   protected AbstractAction getShowConfirmDestroyAction(String id)
/*     */   {
/*  99 */     return null;
/*     */   }
/*     */ 
/*     */   protected AbstractAction getShowUpdatePageAction(String id)
/*     */   {
/* 104 */     return null;
/*     */   }
/*     */ 
/*     */   protected String getTagkey()
/*     */   {
/* 109 */     return "/importantDate";
/*     */   }
/*     */ 
/*     */   protected AbstractAction getUpdateAction(String id)
/*     */   {
/* 114 */     return new UpdateImportantDate(this, id);
/*     */   }
/*     */ }

/* Location:           C:\E\referenceProject\CRM参考\qikebao\WEB-INF\lib\qikebao.jar
 * Qualified Name:     com.newcrm.webapi.ImportantDate
 * JD-Core Version:    0.6.1
 */